package web

// ErrorCodeResp 错误码
type ErrorCodeResp struct {
	Code    int32
	Message string
}

func (ec ErrorCodeResp) SetMsg(message string) {
	ec.Message = message
}
func (ec ErrorCodeResp) SetCode(code int32) {
	ec.Code = code
}

var (
	SuccessCode = ErrorCodeResp{Code: 0, Message: "Success"}
	FailedCode  = ErrorCodeResp{Code: -1, Message: "Failed"}
)
